const MouseEvent = function MouseEvent() {
    Object.defineProperty(this, "isTrusted", {
        set: undefined,
        get: function () {
            return true;
        },
        configurable: false,
        enumerable: true,
    });
    Object.defineProperty(Object.getOwnPropertyDescriptor(this, "isTrusted").get, "name", {
        value: "get isTrusted",
        configurable: true,
        enumerable: false,
        writable: false
    });
    Object.defineProperty(Object.getOwnPropertyDescriptor(this, "isTrusted").get, "length", {
        value: 0,
        configurable: true,
        enumerable: false,
        writable: false
    })
};


let temp1 = new MouseEvent();
console.log(temp1.isTrusted);
console.log(Object.getOwnPropertyDescriptor(temp1, "isTrusted").get.name);